package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @version 1.0
 * @Author 郭腾高
 * @Date 2024/9/16 22:44
 */
public interface DishService {
    /*
    * 添加菜品
    * */
    public void saveWithFlavor(DishDTO dishDTO);

    PageResult pageQuary(DishPageQueryDTO dishPageQueryDTO);

    void deleteBatch(List<Long> ids);

    DishVO getById(Long id);

    void update(DishDTO dishDTO);

    List<Dish> list(Long categoryId);

    void changeStatus(Integer status, Long id);

    List<DishVO> listWithFlavor(Dish dish);
}
